<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>历史订单</title>
</head>
<body>
<h2>历史订单</h2>
<table border="1">
    <thead>
    <tr>
        <th>订单号</th>
        <th>订单状态</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="order: ${list}">
        <td th:text="${order.id}"></td>
        <div th:switch="${order.status}">
            <td th:case="'1'">支付成功</td>
            <td th:case="'2'">支付超时</td>
            <td th:case="'0'">未支付</td>
        </div>
    </tr>
    </tbody>
</table>
</body>
</html>